#!/bin/sh
pushd ../..
VER=`grep RSSGUARD_VERSION CMakeLists.txt | grep ^set | gawk '{print $2}' | sed 's/)//'`
NAME=rssguard-$VER
rm -rf $NAME
git checkout-index -a -f --prefix=./$NAME/ && tar jcf $NAME.tar.bz2 $NAME && rm -rf $NAME
popd
